<?php
class Admin_m extends CI_Model
{
    function __construct()
    {
        parent::__construct();
        $this->load->library('Session');
        $this->load->library('SimpleLoginSecure');
        
    }
    
    function login($admin_email, $admin_pass){
        return $this->simpleloginsecure->login($admin_email, $admin_pass);
    }
    
    function logout(){
        $this->simpleloginsecure->logout();
    }
    
    function change_pass($admin_email, $old_pass, $new_pass){
        return $this->simpleloginsecure->edit_password($admin_email, $old_pass, $new_pass);
    }
    
    function create_new($admin_email, $admin_pass){
        return $this->simpleloginsecure->create($admin_email, $admin_pass, false);
    }
    
    function show_list(){
        return $this->simpleloginsecure->show_list();
    }
    
    function delete($admin_id){
        return $this->simpleloginsecure->delete($admin_id);
    }
    
    
}
